@ layout("/admin/_layout.html"){
    <!-- Docs page layout -->
    <div class="bs-header" id="content">
      <div class="container">
        <h1>话题类别</h1>
        <p>发表话题时所能选择的话题类别</p>
        
      </div>
    </div>

    <div class="container bs-docs-container">
      <p></p>
      <div class="row">
        <div class="col-md-9" role="main">
	        <div class="panel panel-default">
	        <table class="table table-hover table-striped">
	        	<thead><tr><th>名称</th><th>简要描述</th><th>操作</th></tr></thead>
	        	<tbody>
	            @ for(vv in moduleList!){
	                <tr><td>${vv.name}</td><td>${vv.detail}</td>
	                    <td class="span2">
	                        <a href="/admin/module/edit/${vv.id}" title="编辑"><span class="glyphicon glyphicon-edit"></span></a>
	                        <a href="/admin/module/delete/${vv.id}" title="删除" onclick="return confirm('确定删除？')"><span class="glyphicon glyphicon-trash"></span></a>
	                    </td>
	                </tr>
	            @ }
	            </tbody>
	        </table>
	        </div>
        </div>
        <div class="col-md-3">
          <div class="bs-sidebar hidden-print" role="complementary">
            <ul class="nav bs-sidenav">
                <li>
	        @ if(exist("module")){
	            <form action="/admin/module/update" method="post" role="form" class="form-horizontal">
	                <div class="centered"><h3>修改</h3></div>
	        @ }else{
	            <form action="/admin/module/save" method="post" role="form" class="form-horizontal">
	                <div class="centered"><h3>新建</h3></div>
	        @ }
					<input type="hidden" name="module.id" value="${module.id!}">
					<div class="input-group">
					  <span class="input-group-addon" style="width: 95px">名称：</span>
					  <input type="text" name="module.name" value="${module.name!}" class="form-control" id="moduleName" placeholder="输入话题类别名">
					</div>
					<div class="input-group">
					  <span class="input-group-addon">简要描述：</span>
					  <input type="text" name="module.detail" value="${module.detail!}" class="form-control" id="moduleDetail" placeholder="输入话题类别描述">
					</div>
					<div class="input-group">
					  <span class="input-group-addon">显示顺序：</span>
					  <input type="text" name="module.turn" value="${module.turn!}" class="form-control" id="moduleTurn" placeholder="输入排序号">
					</div>
					<div class="centered"><button class="btn btn-primary" type="submit">保存</button></div>
	            </form>
	        	</li>
	        </ul>
          </div>
        </div>
      </div>
    </div>
@ }